-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes #10344 #10345
Fixes #10344 #10345
Conversation
@@ -558,7 +558,7 @@ function emojiTag(tag) { | |||
emojiText += ""; | |||
} | |||
|
|||
if (tag.includes("x86") || tag.includes("_64") || tag.includes("amd64")) { | |||
if (tag.includes("x86") || tag.includes("x64") || tag.includes("_64") || tag.includes("amd64")) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why has _64 been a part of this check? that is a very dubious way to check for x86_64.
src/cli/build_command.zig
Outdated
.linux => "'linux'", | ||
.mac => "'darwin'", | ||
.windows => "'win32'", | ||
else => "unknown", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a syntax error
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could consider just using Environment.os.nameString()
to avoid repeating yourself here. then surround it with quotes
src/cli/build_command.zig
Outdated
.windows => "'win32'", | ||
else => "unknown", | ||
}, | ||
switch (Environment.isX64) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this switch looks weird. i would've just used switch (builtin.target.cpu.arch)
make the else a compile error
What does this PR do?
Fixes #10344
How did you verify your code works?
Test